package com.tiger.project.service.impl;
import java.util.List;

import com.tiger.project.domain.ProjectAcceptanceLinkman;
import com.tiger.project.mapper.ProjectAcceptanceLinkmanMapper;
import com.tiger.project.service.IProjectAcceptanceLinkmanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【项目验收联系人】Service业务层处理
 *
 * @author standard
 * @date 2022-09-19
 */
@Service
public class ProjectAcceptanceLinkmanServiceImpl implements IProjectAcceptanceLinkmanService {
    @Autowired
    private ProjectAcceptanceLinkmanMapper projectAcceptanceLinkmanMapper;

    /**
     * 查询【项目验收联系人】
     *
     * @param id 【项目验收联系人】主键
     * @return 【项目验收联系人】
     */
    @Override
    public ProjectAcceptanceLinkman selectProjectAcceptanceLinkmanById(Long id) {
        return projectAcceptanceLinkmanMapper.selectProjectAcceptanceLinkmanById(id);
    }

    /**
     * 查询【项目验收联系人】列表
     *
     * @param projectAcceptanceLinkman 【项目验收联系人】
     * @return 【项目验收联系人】
     */
    @Override
    public List<ProjectAcceptanceLinkman> selectProjectAcceptanceLinkmanList(ProjectAcceptanceLinkman projectAcceptanceLinkman) {
        return projectAcceptanceLinkmanMapper.selectProjectAcceptanceLinkmanList(projectAcceptanceLinkman);
    }

    /**
     * 新增【项目验收联系人】
     *
     * @param projectAcceptanceLinkman 【项目验收联系人】
     * @return 结果
     */
    @Override
    public int insertProjectAcceptanceLinkman(ProjectAcceptanceLinkman projectAcceptanceLinkman) {
        return projectAcceptanceLinkmanMapper.insertProjectAcceptanceLinkman(projectAcceptanceLinkman);
    }

    /**
     * 修改【项目验收联系人】
     *
     * @param projectAcceptanceLinkman 【项目验收联系人】
     * @return 结果
     */
    @Override
    public int updateProjectAcceptanceLinkman(ProjectAcceptanceLinkman projectAcceptanceLinkman) {
        return projectAcceptanceLinkmanMapper.updateProjectAcceptanceLinkman(projectAcceptanceLinkman);
    }

    /**
     * 批量删除【项目验收联系人】
     *
     * @param ids 需要删除的【项目验收联系人】主键
     * @return 结果
     */
    @Override
    public int deleteProjectAcceptanceLinkmanByIds(Long[] ids) {
        return projectAcceptanceLinkmanMapper.deleteProjectAcceptanceLinkmanByIds(ids);
    }

    /**
     * 删除【项目验收联系人】信息
     *
     * @param id 【项目验收联系人】主键
     * @return 结果
     */
    @Override
    public int deleteProjectAcceptanceLinkmanById(Long id) {
        return projectAcceptanceLinkmanMapper.deleteProjectAcceptanceLinkmanById(id);
    }
    }
